how to divide a line into equal parts